home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / c / pmm / doku / libdoku / memlib.readme.orig < prev    next >
Text File  |  1999-06-14  |  2KB  |  37 lines

  1. Short   : Link library to debug memory problems
  2. Author  : Doug Walker <walker@southpeak.com>
  3. Uploader: Haidinger Walter <e9225662@stud1.tuwien.ac.at>
  4. Type    : dev/debug
  5. Replaces: dev/debug/MemLib.lha
  6. Requires: SAS/C v6.0+
  7.  
  8. This is a bug-fix release of Doug Walker's MemWatch Library.
  9. He also granted permission for an Aminet upload. Thanks!
  10. A short description taken from memlib.doc:
  11.  
  12. The MemWatch library adds lots of memory debugging features that you link
  13. into your program.  The library does what it can to validate your memory
  14. allocations and frees and to encourage any misuse of memory to result in
  15. a reproducable crash rather than an erratic bug.
  16.  
  17. The MemWatch library compiles under SAS/C 6.0 and above.  If the memory
  18. features are turned off, no additional code will be added to your
  19. program.  If they are enabled, your code will call routines in the
  20. MemWatch library automatically instead of malloc, calloc, realloc, free,
  21. AllocMem, FreeMem, AllocVec, and FreeVec.  The MemWatch library also
  22. replaces the standard C library versions of getcwd(), getenv(), and
  23. strdup() since these functions call malloc().
  24.  
  25. The program-level memory debug routines are controlled by a
  26. preprocessor symbol, MWDEBUG, and are #defined to nothing if the
  27. symbol is not defined.
  28.  
  29. To link the program-level routines into your code, do the following:
  30. [partially cutted, read memlib.doc for more info  --Walter]
  31. 1. Include the file "memwatch.h" into each file
  32. 2. #define the symbol MWDEBUG to 1 at some point before memwatch.h
  33.    is included.
  34. 3. Recompile all files in your program and link with "memwatch.lib".
  35.  
  36.  
  37.